<template>
  <div class="right-container">
    <h3>Right 组件 {{ countFromLeft }}</h3>
  </div>
</template>

<script>
import eventBus from '../utils/eventBus'
export default {
  data() {
    return {
      countFromLeft: 1
    }
  },
  created() {
    eventBus.$on('share', (count) => {
      this.countFromLeft = count
    })
  }
}
</script>

<style lang="less">
.right-container {
  padding: 0 20px 20px;
  background-color: lightskyblue;
  min-height: 250px;
  flex: 1;
}
</style>
